<script type="text/javascript">
	$(function() {
		//dy
		$.get("applicationDefinition/getAppKindName",function(data) {
				var content = "<option value='' selected>请选择</option>";
				$(data).each(function(n, item) {
					for (i = 0; i < item.sdd.length; i++) {
						content += "<option value="+item.sdd[i].appKindId+">"
								   + item.sdd[i].appKindName
								   + "</option>"
						}
					$("#appKindId").html(content);
				});
		}, "json"); 
		$.post("applicationDefinition/queryAppDefinition",queryAppDefinition,"json");
	});
	//去修改页面
	function updateModifyAppKind() {

		if ($("input[name='appKindDefType']:checked").length < 1) {
			alertMsg.warn("您未选择数据！")
			return false;
		}
		var parm=$("input[name='appKindDefType']:checked").val();
	 	var options={"width":"900","height":"500","appType":parm};
		$.pdialog.open("applicationDefinition/modifyAppKind","infos", "修改柜员信息",options); 
	}
</script>
<body>
	<div class="pageHeader ">
		<form method="post" action="applicationDefinition/queryAppDefinition" class="pageForm required-validate"
			onsubmit="return validateCallback(this,queryAppDefinition);">
			<input type="hidden" name="numPerPage" value="" /> 
			<input type="hidden" name="pageNum" value="" />
			<div class="searchBar">
				<div class="row" style="padding: 0 10px;">
					<div class="col-md-6 col-sm-12">
						<p>
							<label>应用类型：</label> 
							<select id="appKindId" name="appKindId"></select>
						</P>
					</div>
					<div class="col-md-6 col-sm-12">
						<p>
							<label>应用名称：</label> 
							<input type="text" name="appKindNameByDef" id="appKindNameByDef" value=""/>
						</P>
					</div>
				</div>
				<div class="subBar">
					<ul>
						<li>
							<div class="buttonActive">
								<div class="buttonContent">
									<button type="submit" title="查询">查询</button>
								</div>
							</div>
						</li>
					</ul>
				</div>
			</div>
		</form>
	</div>
	<form id="yi" method="post" action="" class="pageForm required-OpenApp"
		onsubmit="return validateCallback(this,navTabAjaxDone);">
		<div class="pageContent">
			<div class="panelBar">
				<ul class="toolBar">
					<li><a class="add" href="applicationDefinition/addAppKind"
						target="dialog" rel="AddNewAppKind" width="900" height="500"><span>新增</span></a></li>
					<li><a class="edit" onclick="return updateModifyAppKind();"><span>修改</span></a></li>
				</ul>
			</div>
			<div id="tableInfoByAppDef">
				<table class="table" width="800" layoutH="238">
					<thead>
						<tr align="center">
							<th width="3%" align="center">选择</th>
							<th width="5%">序号</th>
							<th width="10%">应用名称</th>
							<th width="10%">应用分类</th>
							<th width="10%">状态</th>
							<th width="10%">是否需要年检</th>
							<th width="10%">更新柜员</th>
							<th width="15%">更新日期</th>
							<th width="15%">更多信息</th>
						</tr>
					</thead>
					<tbody id="tdInfoByAppDef">
					</tbody>
				</table>
			</div>
		</div>
	</form>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value},'tdInfoByAppDef',queryAppDefinition">
				<option value="10">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select> <span id="totalCountByAppDef">条，共 0 条</span>
		</div>
		<div callback='queryAppDefinition' id="paginationByAppDef" rel="tdInfoByAppDef" class="pagination" targetType="navTab" totalCount="100"
			numPerPage="10" pageNumShown="1" currentPage="1"></div>
	</div>
</body>
</html>